package design.mode.adaptor.objectAdapter;

/**
 * @author ZhongMingde on 2021/11/4
 */

public class Adaptor implements ITarget{

  private Adaptee adaptee;

  public Adaptor(Adaptee adaptee) {
    this.adaptee = adaptee;
  }

  @Override
  public void request() {
    adaptee.specificRequest();
    System.out.println("适配成功");
  }
}
